// 自动生成模板Timetable
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type Timetable struct {
      global.GVA_MODEL
      TeacherName  string `json:"teacherName" form:"teacherName" gorm:"column:teacherName;comment:"`
      CourseName  string `json:"courseName" form:"courseName" gorm:"column:courseName;comment:"`
      Day  string `json:"day" form:"day" gorm:"column:day;comment:"`
      Time  string `json:"time" form:"time" gorm:"column:time;comment:"`
      Classroom  string `json:"classroom" form:"classroom" gorm:"column:classroom;comment:"`
      ClassId  string `json:"classId" form:"classId" gorm:"column:classId;comment:"`
}


func (Timetable) TableName() string {
  return "timetable"
}


// 如果使用工作流功能 需要打开下方注释 并到initialize的workflow中进行注册 且必须指定TableName
// type TimetableWorkflow struct {
// 	// 工作流操作结构体
// 	WorkflowBase      `json:"wf"`
// 	Timetable   `json:"business"`
// }

// func (Timetable) TableName() string {
// 	return "课程表"
// }

// 工作流注册代码

// initWorkflowModel内部注册
// model.WorkflowBusinessStruct["timetable"] = func() model.GVA_Workflow {
//   return new(model.TimetableWorkflow)
// }

// initWorkflowTable内部注册
// model.WorkflowBusinessTable["timetable"] = func() interface{} {
// 	return new(model.Timetable)
// }
